<?php
$fileName = "D:\WARRIOR\PHP\phpProOne\indexOne\baseSyntax\Array\arrayConcat.php";
$arr = pathinfo( $fileName );
if (file_exists( $fileName )) {
    print_r( $arr );
    echo '<br>';
}
echo "当前文件目录信息:" . pathinfo( $fileName, PATHINFO_DIRNAME ) . '<br>';
echo "当前文件文件信息:" . pathinfo( $fileName, PATHINFO_FILENAME ) . '<br>';
echo "当前文件扩展名:" . pathinfo( $fileName, PATHINFO_EXTENSION ) . '<br>';
echo "当前文件文件名:" . pathinfo( $fileName, PATHINFO_BASENAME ) . '<br>';

